package a3;

public class School {
    private Department[] departments;
    private int departmentCount;

    public School(int initialDepartments) {
        departments = new Department[initialDepartments];
        departmentCount = 0;
    }

    public void addDepartment(Department dept) {
        departments[departmentCount++] = dept;
    }

    // 其他方法和属性（如获取系列表、查找系等）..
}
